
package com.mt.api.modules.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
*
* @description /
* @author plover
* @date 2020-07-06
**/
@Data
@TableName("es_boss_setup")
public class AppBossSetup implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer bossId;

    @ApiModelProperty(value = "常用颜色")
    private String colors;

    @ApiModelProperty(value = "常用尺码")
    private String sizes;

    @ApiModelProperty(value = "库存预警值")
    private Integer warnVal;

    @ApiModelProperty(value = "数量步进器")
    private Integer qtyStepper;

    @ApiModelProperty(value = "是否删除 0-否 1-是")
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private Integer createId;

    @TableField(fill = FieldFill.INSERT)
    private String creator;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Integer updateId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updater;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public void copy(AppBossSetup source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}